<template>
  <div class="fns-header-component">
    <!-- ========头部======-->
    <el-form  :inline="true" label-position="right" >
	  <el-row>
        <el-col :span="24">

          <slot class="secrch-box" name="slot1"></slot>

          <el-form-item class="btn-search">
            <el-button  type="primary" @click="search()" size="medium" icon="el-icon-search">查询</el-button>
          </el-form-item>
        </el-col>
	  </el-row>
    </el-form>
  </div>
</template>

<script>
  export default {
    props: {
    },
    computed: {
    },
    watch: {
    },
    data() {
      return {
      }
    },
    methods: {
      search() {
        this.$emit('search', 'search')
      }
    }
  }
</script>

<style lang="scss">
  /*头部组件header*/
  .fns-header-component {
		.el-form-item {
			 margin-bottom: 10px !important;
		}
    .el-form--inline .el-form-item {
      width: 24%;
      margin-right: 0 !important;
      .el-form-item__label {
        width: 35%;
      }
      .el-form-item__content {
        width: 65%;
        .el-date-editor {
          width: 100% !important;
        }
      }
    }
    .date-form-item {
       width: 48.5% !important;
        .el-form-item__label {
          width: 17.5% !important;
        }
        .el-form-item__content {
          width: 82.5% !important;
        }
    }
    
    // 查询按钮位置
    .btn-search {
      margin-right: 0 !important;
      .el-form-item__content {
        margin-left: 35%;
        width: auto;
      }
    }
    
    // label文字超过4个的样式
    .more-text > label {
      line-height: 18px;
    }

  }
</style>
